﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;

namespace YasharEl.Infrastructure.Core.ServiceModel
{
    public static class KnownTypesRegistrator
    {
        public static IEnumerable<Type> GetPropertyValueDTOTypes(ICustomAttributeProvider provider)
        {
            List<Type> knownTypes = new List<Type>();

            knownTypes.Add(typeof(PropertyValueIntegerDTO));
            knownTypes.Add(typeof(PropertyValueLongDTO));
            knownTypes.Add(typeof(PropertyValueStringDTO));
            knownTypes.Add(typeof(PropertyValueAddressDTO));
            knownTypes.Add(typeof(PropertyValueBooleanDTO));
            knownTypes.Add(typeof(PropertyValueDateTimeDTO));
            knownTypes.Add(typeof(PropertyValueDecimalDTO));
            knownTypes.Add(typeof(PropertyValueDoubleDTO));

            return knownTypes.ToArray();
        }
    }
}
